import { http, uploadPost } from '../request'


let radioList = {

  //获取广播列表
  getBroadcast(data) {
    return http("/broadcast/getBroadcast", data)
  },
  // 查询广播详情
  showBroadcast(data) {
    return http("/broadcast/showBroadcast", data)
  },
  // 获取目录
  getCatalogue(data) {
    return http("/broadcast/getCatalogue", data)
  },
  // 上架/下架
  updateBroadcastState(data){
    return http("/broadcast/updateBroadcastState", data)

  },
  // 广播-推荐
  updateBroadcast(data) {
    return http("/broadcast/updateBroadcast", data)
  },
  // 获取全部广播类型列表
  getAllBroadcastType(data) {
    return http("/broadcast/getAllBroadcastType", data)
  },

  // 获取广播类型列表
  getBroadcastType(data) {
    return http("/broadcast/getBroadcastType", data)
  },
  // 增加广播信息
  insertBroadcast(data) {
    return http("/broadcast/insertBroadcast", data)
  },
  // 修改广播信息
  updateBroadcast(data) {
    return http("/broadcast/updateBroadcast", data)
  },
  // 获取广播目录
  getCatalogue(data) {
    return http("/broadcast/getCatalogue", data)
  },
  // 上传音频
  uploadAudio(data) {
    console.log(data)
    return uploadPost("/upload/pictureOrVideo", data)

  },
  // 增加目录
  insertCatalogue(data) {
    return http("/broadcast/insertCatalogue", data)
  },
  // 修改目录
  updateCatalogue(data) {
    return http("/broadcast/updateCatalogue", data)
  },
  // 删除目录
  deleteCatalogue(data){
    return http("/broadcast/deleteCatalogue", data)

  }
}




export default radioList